<template>
	<view class="content">
		<view class="header">
			<text class="name">账户余额(元)</text>
			<text class="num" v-html="money"></text>
			<view class="consume-information">
				<view class="item">
					<view>今日广告花费(元)</view>
					<view class="money">0.00</view>
				</view>
				<view class="item">
					<view>昨日广告花费(元)</view>
					<view class="money">0.00</view>
				</view>
			</view>
		</view>
		<navigator class="bnt bg-color-blue" hover-class="none" url="/pages/merchant/capital/add">立即充值</navigator>
		<view class="function-lists">
			<navigator class="item" hover-class="none" url="/pages/merchant/capital/record?type=0">
				<u-icon name="rmb-circle-fill" color="#1db0fc" size="80"></u-icon>
				<text class="name">资金记录</text>
			</navigator>
			<navigator class="item" hover-class="none" url="/pages/merchant/extension/list">
				<u-icon name="grid-fill" color="#1db0fc" size="80"></u-icon>
				<text class="name">推广计划</text>
			</navigator>
			<!-- <view class="item">
				<u-icon name="setting-fill" color="#1db0fc" size="80"></u-icon>
				<text class="name">信息设置</text>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				money: '0.00'
			};
		},
		methods: {
		}
	}
</script>

<style lang="scss">
	.content {
		.header {
			background-image: url();
			background-repeat: no-repeat;
			background-size: 100% 100%;
			width: 100%;
			height: 187px;

			.name {
				font-size: 15px;
				color: #fff;
				padding-top: 28px;
				position: relative;
				display: block;
				text-align: center;
			}

			.num {
				display: block;
				text-align: center;
				color: #fff;
				margin-top: 14px;
				font-size: 45px;
				font-family: Guildford Pro;
			}

			.consume-information {
				display: flex;
				padding: 0 10px;
				margin-top: 17px;
				font-size: 12px;
				color: hsla(0, 0%, 100%, .8);
				justify-content: space-between;

				.item {
					min-width: 100px;
					text-align: center;

					.money {
						font-size: 17px;
						color: #fff;
						margin-top: 2px;
					}
				}
			}
		}

		.bnt {
			font-size: 14px;
			color: #fff;
			width: 129px;
			height: 34px;
			border-radius: 25px;
			text-align: center;
			line-height: 34px;
			margin: -16px auto 0 auto;
			z-index: 100;
		}

		.bg-color-blue {
			background-color: #1db0fc !important;
		}

		.function-lists {
			padding: 0 10px 25px 10px;
			margin-top: 5px;
			justify-content: space-between;
			display: flex;
			flex-wrap: wrap;
			.item{
				width: 172px;
				height: 120px;
				border-radius: 10px;
				background-color: #fff;
				margin-top: 10px;
				font-size: 15px;
				color: #666;
			    display: flex;
			    flex-direction: column;
			    text-align: center;
			    align-items: center;
			    justify-content: center;
				.name{
					margin-top: 20rpx;
				}
			}
		}
	}
</style>
